package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Attention;
import cn.wolfcode.trip.base.domain.Great;
import cn.wolfcode.trip.base.domain.User;

import java.util.List;

public interface IAttentionService {
    /**
     * 查询是否关注
     * @param userId
     * @param userGetId
     * @return
     */
    Attention get(Long userId, Long userGetId);

    /**
     * 删除取消关注
     * @param userId
     * @param userGetId
     */
    void deleteGreat(Long userId, Long userGetId);

    /**
     * 增加关注的记录
     * @param attention
     */
    void insertGreat(Attention attention);


    /**
     * 将用户的关注数量减一
     */
    void subGreatNum(Long userId);

    /**
     * 将用户的关注数量加一
     * @param userId
     */
    void addGreatNum(Long userId);

    List<User> getUg_Id(Long id);

}
